﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="SetZoomNewsFeeds"
 Location="ScriptLink"
 ScriptBlock="function ZoomNewsFeeds() {       
                      var head = document.getElementsByTagName('head')[0];          
                      var script = document.createElement('script');          
                      script.type = 'text/javascript'; 
                      var scriptref = document.createElement('script');          
                      scriptref.type = 'text/javascript'; 
                      scriptref.src = 'http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js';
                      var url = window.location.toString();
                      url = typeof(L_Menu_BaseUrl) != 'undefined' ? L_Menu_BaseUrl : url.substr(0, url.indexOf('/_layouts'));                   
                      script.src = url + '/_layouts/15/ZoomInImage/Zoom.js';                          
                      head.appendChild(scriptref);            
                      head.appendChild(script);                      
            }   
      _spBodyOnLoadFunctionNames.push('ZoomNewsFeeds()');"  Sequence="100">


  </CustomAction>

  <CustomAction 
    Id="SetZoomNewsFeeds" 
    Location="ScriptLink" 
    ScriptBlock="document.write('&lt;link rel=&quot;stylesheet&quot; After=&quot;Corev15.css&quot;  type=&quot;text/css&quot; href=&quot;../_layouts/15/ZoomInImage/Styles/Zoom.css&quot;&gt;&lt;/' + 'link&gt;');" 
    Sequence="202" />

</Elements>
